import request from '../../utils/request';

//查询资源列表
export const doFindResource = queryData => {
    return request({
        url: '/api/resic/resource/findPage',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'queryData'},
        data: queryData
    });
};

//保存资源信息
export const doSaveResource = formData => {
    return request({
        url: '/api/resic/resource/save',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'formData'},
        data: formData
    });
};

//获取资源信息
export const doGetResource = queryData => {
    return request({
        url: '/api/resic/resource/get',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'queryData'},
        data: queryData
    });
};

//删除资源信息
export const doDeleteResource = paramData => {
    return request({
        url: '/api/resic/resource/delete',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'formData'},
        data: paramData
    });
};